package yang.yu.hrm.organisation.domain;

import javax.persistence.Entity;
import java.util.Date;

/**
 * Created by yyang on 2016/10/7.
 */
@Entity
public class Employment extends AbstractEntity {

    private OrganizationEntity employer;

    private Employee employee;

    private Date employmentDate;

    public Employment() {
    }

    public Employment(OrganizationEntity employer, Employee employee, Date employmentDate) {
        this.employer = employer;
        this.employee = employee;
        this.employmentDate = employmentDate;
    }

    public OrganizationEntity getEmployer() {
        return employer;
    }

    public Employee getEmployee() {
        return employee;
    }

    public Date getEmploymentDate() {
        return employmentDate;
    }
}
